<!DOCTYPE html>



  


<html class="theme-next pisces use-motion" lang="zh-Hans">
<head><meta name="generator" content="Hexo 3.9.0">
  <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="theme-color" content="#222">









<meta http-equiv="Cache-Control" content="no-transform">
<meta http-equiv="Cache-Control" content="no-siteapp">
















  
  
  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css">







<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css">

<link href="/css/main.css?v=5.1.4" rel="stylesheet" type="text/css">


  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png?v=5.1.4">


  <link rel="mask-icon" href="/images/logo.svg?v=5.1.4" color="#222">





  <meta name="keywords" content="密码学,">





  <link rel="alternate" href="/atom.xml" title="Mr.赵" type="application/atom+xml">






<meta name="keywords" content="密码学">
<meta property="og:type" content="article">
<meta property="og:title" content="bugku密码学通关指南">
<meta property="og:url" content="https://GodPang.github.io/2019/10/04/bugku密码学通关指南/index.html">
<meta property="og:site_name" content="Mr.赵">
<meta property="og:locale" content="zh-Hans">
<meta property="og:image" content="https://i.loli.net/2019/10/04/bcQVKyu3D5dCfao.png">
<meta property="og:image" content="https://i.loli.net/2019/10/04/lq6LMHxsIXQa9Ok.png">
<meta property="og:image" content="https://i.loli.net/2019/10/04/dhUDeW5fZswVPQg.png">
<meta property="og:image" content="https://i.loli.net/2019/10/04/mMiCq71XNvjf9K2.png">
<meta property="og:image" content="https://i.loli.net/2019/10/04/qwg6nJfzDEVyQtT.png">
<meta property="og:image" content="https://i.loli.net/2019/10/04/5sLMoROtS4T6P2v.png">
<meta property="og:image" content="https://i.loli.net/2019/10/04/q3t8US6Y7CArO5D.jpg">
<meta property="og:updated_time" content="2019-10-04T08:14:42.692Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="bugku密码学通关指南">
<meta name="twitter:image" content="https://i.loli.net/2019/10/04/bcQVKyu3D5dCfao.png">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/',
    scheme: 'Pisces',
    version: '5.1.4',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":false,"scrollpercent":true,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="https://GodPang.github.io/2019/10/04/bugku密码学通关指南/">





  <title>bugku密码学通关指南 | Mr.赵</title>
  








</head>

<body itemscope="" itemtype="http://schema.org/WebPage" lang="zh-Hans">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>
    
    <a href="https://GodPang.github.io" class="github-corner" aria-label="View source on Github"><svg width="80" height="80" viewbox="0 0 250 250" style="fill:#151513; color:#fff; position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"/><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"/><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"/></svg></a><style>.github-corner:hover .octo-arm{animation:octocat-wave 560ms ease-in-out}@keyframes octocat-wave{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@media (max-width:500px){.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:octocat-wave 560ms ease-in-out}}</style>

    <header id="header" class="header" itemscope="" itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/" class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">Mr.赵</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle"></p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-首页">
          <a href="/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br>
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-关于">
          <a href="/about/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-user"></i> <br>
            
            关于
          </a>
        </li>
      
        
        <li class="menu-item menu-item-标签">
          <a href="/tags/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags"></i> <br>
            
            标签
          </a>
        </li>
      
        
        <li class="menu-item menu-item-类别">
          <a href="/categories/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-th"></i> <br>
            
            类别
          </a>
        </li>
      
        
        <li class="menu-item menu-item-归档">
          <a href="/archives/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br>
            
            归档
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal" itemscope="" itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="https://GodPang.github.io/2019/10/04/bugku密码学通关指南/">

    <span hidden itemprop="author" itemscope="" itemtype="http://schema.org/Person">
      <meta itemprop="name" content="GodPang">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/images/touxiang.jpg">
    </span>

    <span hidden itemprop="publisher" itemscope="" itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Mr.赵">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">bugku密码学通关指南</h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2019-10-04T16:11:03+08:00">
                2019-10-04
              </time>
            

            

            
          </span>

          
            <span class="post-category">
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope="" itemtype="http://schema.org/Thing">
                  <a href="/categories/ctf学习笔记/" itemprop="url" rel="index">
                    <span itemprop="name">ctf学习笔记</span>
                  </a>
                </span>

                
                
              
            </span>
          

          
            
              <span class="post-comments-count">
                <span class="post-meta-divider">|</span>
                <span class="post-meta-item-icon">
                  <i class="fa fa-comment-o"></i>
                </span>
                <a href="/2019/10/04/bugku密码学通关指南/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count valine-comment-count" data-xid="/2019/10/04/bugku密码学通关指南/" itemprop="commentCount"></span>
                </a>
              </span>
            
          

          
          

          
            <span class="post-meta-divider">|</span>
            <span class="page-pv"><i class="fa fa-eye"></i>
            <span class="busuanzi-value" id="busuanzi_value_page_pv"></span>
            </span>
          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <html><head><meta name="generator" content="Hexo 3.9.0"></head><body><p><img src="https://i.loli.net/2019/10/04/bcQVKyu3D5dCfao.png" alt=""></p>
<a id="more"></a>

<h2 id="1-滴答-滴"><a href="#1-滴答-滴" class="headerlink" title="1.滴答~滴"></a>1.滴答~滴</h2><figure class="highlight plain"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">-... -.- -.-. - ..-. -- .. ... -.-.</span><br></pre></td></tr></tbody></table></figure>

<p>很明显是摩斯密码，直接摩斯解密加上flag格式就好。</p>
<figure class="highlight plain"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">KEY{BKCTFMISC}</span><br></pre></td></tr></tbody></table></figure>

<h2 id="2-聪明的小羊"><a href="#2-聪明的小羊" class="headerlink" title="2.聪明的小羊"></a>2.聪明的小羊</h2><p>一只小羊翻过了2个栅栏</p>
<figure class="highlight plain"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">KYsd3js2E{a2jda}</span><br></pre></td></tr></tbody></table></figure>

<p>根据题目提示，很明显是栅栏加密，直接栅栏解密就可以了。</p>
<figure class="highlight plain"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">KEY{sad23jjdsa2}</span><br></pre></td></tr></tbody></table></figure>

<h2 id="3-ok"><a href="#3-ok" class="headerlink" title="3.ok"></a>3.ok</h2><figure class="highlight plain"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook.</span><br><span class="line">Ook. Ook. Ook. Ook. Ook. Ook! Ook? Ook! Ook! Ook. Ook? Ook. Ook. Ook. Ook.</span><br><span class="line">Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook.</span><br></pre></td></tr></tbody></table></figure>

<p>题目内容是一堆Ook！直接用下边的解密网址，选择Ook! to Text就好</p>
<p><a href="https://note.youdao.com/" target="_blank" rel="noopener">https://www.splitbrain.org/services/ook</a></p>
<h2 id="4-这不是摩斯密码"><a href="#4-这不是摩斯密码" class="headerlink" title="4.这不是摩斯密码"></a>4.这不是摩斯密码</h2><figure class="highlight plain"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">+++++ +++++ [->++ +++++ +++<]>++.+ +++++ .<+++ [-="">-- -<]>- -.+++ +++.<</]></+++></]></span><br><span class="line">++++[ ->+++ +<]>+ +++.< +++[- >---< ]>--- .---- .<+++ ++++[="" -="">--- ----<</+++></]></span><br><span class="line">]>--- ----- ----- .<+++ ++++[="" -="">+++ ++++< ]>+++ ++.<+ +++++="" +[-="">- -----</+></+++></span><br><span class="line">-<]>. <++++ ++++[="" -="">+++ +++++ <]>++ .<+++ [-="">-- -<]>- ----. <++++ +++[-<="" span=""><br><span class="line">>---- ---<]>---- ----. +++++ +..++ +++.+ .<+++ [-="">-- -<]>- --.<+ +++++<="" span=""><br><span class="line">+[->+ +++++ +<]>+ ++.++ +.+++ +++++ +.--- -.+++ ++.<+ ++[-=""> +++<]>++++</]></+></]></span><br><span class="line">++.<</span><br></+></]></+++></]></span></++++></]></+++></]></++++></]></span></pre></td></tr></tbody></table></figure>

<p>Brainfuck 选择Brainfuck to Text解密即可</p>
<p><a href="https://note.youdao.com/" target="_blank" rel="noopener">https://www.splitbrain.org/services/ook</a></p>
<h2 id="5-easy-crypto"><a href="#5-easy-crypto" class="headerlink" title="5.easy_crypto"></a>5.easy_crypto</h2><figure class="highlight plain"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">0010 0100 01 110 1111011 11 11111 010 000 0 001101 1010 111 100 0 001101 01111 000 001101 00 10 1 0 010 0 000 1 01111 10 11110 101011 1111101</span><br></pre></td></tr></tbody></table></figure>

<p>莫尔斯电码加密。<br>通过百度文库，找到了mrose和ascii的对应关系如下<br><img src="https://i.loli.net/2019/10/04/lq6LMHxsIXQa9Ok.png" alt=""><br>抄别人的脚本</p>
<figure class="highlight python"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br></pre></td><td class="code"><pre><span class="line">string=input()</span><br><span class="line">key=string.split(<span class="string">" "</span>)</span><br><span class="line">dictionary= {<span class="string">'01'</span>: <span class="string">'A'</span>,</span><br><span class="line">        <span class="string">'1000'</span>: <span class="string">'B'</span>,</span><br><span class="line">        <span class="string">'1010'</span>: <span class="string">'C'</span>,</span><br><span class="line">        <span class="string">'100'</span>:<span class="string">'D'</span>,</span><br><span class="line">        <span class="string">'0'</span>:<span class="string">'E'</span>,</span><br><span class="line">        <span class="string">'0010'</span>:<span class="string">'F'</span>,</span><br><span class="line">        <span class="string">'110'</span>: <span class="string">'G'</span>,</span><br><span class="line">        <span class="string">'0000'</span>: <span class="string">'H'</span>,</span><br><span class="line">        <span class="string">'00'</span>: <span class="string">'I'</span>,</span><br><span class="line">        <span class="string">'0111'</span>:<span class="string">'J'</span>,</span><br><span class="line">        <span class="string">'101'</span>: <span class="string">'K'</span>,</span><br><span class="line">        <span class="string">'0100'</span>: <span class="string">'L'</span>,</span><br><span class="line">        <span class="string">'11'</span>: <span class="string">'M'</span>,</span><br><span class="line">        <span class="string">'10'</span>: <span class="string">'N'</span>,</span><br><span class="line">        <span class="string">'111'</span>: <span class="string">'O'</span>,</span><br><span class="line">        <span class="string">'0110'</span>: <span class="string">'P'</span>,</span><br><span class="line">        <span class="string">'1101'</span>: <span class="string">'Q'</span>,</span><br><span class="line">        <span class="string">'010'</span>: <span class="string">'R'</span>,</span><br><span class="line">        <span class="string">'000'</span>: <span class="string">'S'</span>,</span><br><span class="line">        <span class="string">'1'</span>: <span class="string">'T'</span>,</span><br><span class="line">        <span class="string">'001'</span>: <span class="string">'U'</span>,</span><br><span class="line">        <span class="string">'0001'</span>: <span class="string">'V'</span>,</span><br><span class="line">        <span class="string">'011'</span>: <span class="string">'W'</span>,</span><br><span class="line">        <span class="string">'1001'</span>: <span class="string">'X'</span>,</span><br><span class="line">        <span class="string">'1011'</span>: <span class="string">'Y'</span>,</span><br><span class="line">        <span class="string">'1100'</span>: <span class="string">'Z'</span>,</span><br><span class="line">        <span class="string">'01111'</span>: <span class="string">'1'</span>,</span><br><span class="line">        <span class="string">'00111'</span>: <span class="string">'2'</span>,</span><br><span class="line">        <span class="string">'00011'</span>: <span class="string">'3'</span>,</span><br><span class="line">        <span class="string">'00001'</span>: <span class="string">'4'</span>,</span><br><span class="line">        <span class="string">'00000'</span>: <span class="string">'5'</span>,</span><br><span class="line">        <span class="string">'10000'</span>: <span class="string">'6'</span>,</span><br><span class="line">        <span class="string">'11000'</span>: <span class="string">'7'</span>,</span><br><span class="line">        <span class="string">'11100'</span>: <span class="string">'8'</span>,</span><br><span class="line">        <span class="string">'11110'</span>: <span class="string">'9'</span>,</span><br><span class="line">        <span class="string">'11111'</span>: <span class="string">'0'</span>,</span><br><span class="line">        <span class="string">'001100'</span>: <span class="string">'?'</span>,</span><br><span class="line">        <span class="string">'10010'</span>: <span class="string">'/'</span>,</span><br><span class="line">        <span class="string">'101101'</span>: <span class="string">'()'</span>,</span><br><span class="line">        <span class="string">'100001'</span>: <span class="string">'-'</span>,</span><br><span class="line">        <span class="string">'010101'</span>: <span class="string">'.'</span>,</span><br><span class="line">        <span class="string">'110011'</span>:<span class="string">','</span>,</span><br><span class="line">        <span class="string">'011010'</span>:<span class="string">'@'</span>,</span><br><span class="line">        <span class="string">'111000'</span>:<span class="string">':'</span>,</span><br><span class="line">        <span class="string">'101010'</span>:<span class="string">':'</span>,</span><br><span class="line">        <span class="string">'10001'</span>:<span class="string">'='</span>,</span><br><span class="line">        <span class="string">'011110'</span>:<span class="string">"'"</span>,</span><br><span class="line">        <span class="string">'101011'</span>:<span class="string">'!'</span>,</span><br><span class="line">        <span class="string">'001101'</span>:<span class="string">'_'</span>,</span><br><span class="line">        <span class="string">'010010'</span>:<span class="string">'"'</span>,</span><br><span class="line">        <span class="string">'10110'</span>:<span class="string">'('</span>,</span><br><span class="line">        <span class="string">'1111011'</span>:<span class="string">'{'</span>,</span><br><span class="line">        <span class="string">'1111101'</span>:<span class="string">'}'</span></span><br><span class="line">        }; </span><br><span class="line"><span class="keyword">for</span> item <span class="keyword">in</span> key:</span><br><span class="line">    print(dictionary[item],end=<span class="string">''</span>)</span><br></pre></td></tr></tbody></table></figure>

<h2 id="6-简单加密"><a href="#6-简单加密" class="headerlink" title="6.简单加密"></a>6.简单加密</h2><figure class="highlight python"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">import</span> base64</span><br><span class="line">str1 = <span class="string">'e6Z9i~]8R~U~QHE{RnY{QXg~QnQ{^XVlRXlp^XI5Q6Q6SKY8jUAA'</span></span><br><span class="line">str2 = <span class="string">''</span></span><br><span class="line"><span class="keyword">for</span> i <span class="keyword">in</span> range(len(str1)):</span><br><span class="line">    str2 += chr(ord(str1[i])<span class="number">-4</span>)</span><br><span class="line"></span><br><span class="line">str2 = base64.b64decode(str2)</span><br><span class="line">print(str2)</span><br><span class="line"><span class="comment">## key{68743000650173230e4a58ee153c68e8}</span></span><br></pre></td></tr></tbody></table></figure>

<h2 id="7-散乱的密文"><a href="#7-散乱的密文" class="headerlink" title="7.散乱的密文"></a>7.散乱的密文</h2><p>lf5{ag024c483549d7fd@@1}</p>
<p>一张纸条上凌乱的写着2 1 6 5 3 4</p>
<p>排好顺序按照1-6的顺序读出</p>
<figure class="highlight plain"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">216534</span><br><span class="line">lf5{ag</span><br><span class="line">024c48</span><br><span class="line">3549d7</span><br><span class="line">fd@@1}</span><br><span class="line">flag{52048c453d794df1}</span><br></pre></td></tr></tbody></table></figure>

<h2 id="8-凯撒部长的奖励"><a href="#8-凯撒部长的奖励" class="headerlink" title="8.凯撒部长的奖励"></a>8.凯撒部长的奖励</h2><figure class="highlight plain"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">MSW{byly_Cm_sIol_lYqUlx_yhdIs_Cn_Wuymul_il_wuff_bcg_pCwnIl_cm_u_Yrwyffyhn_guh_cz_sio_quhn_ni_ayn_bcm_chzilguncihm_sio_wuh_dich_om}</span><br></pre></td></tr></tbody></table></figure>

<p>凯撒加密</p>
<figure class="highlight plain"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">SYC{here_Is_yOur_rEwArd_enjOy_It_Caesar_or_call_him_vIctOr_is_a_Excellent_man_if_you_want_to_get_his_informations_you_can_join_us}</span><br></pre></td></tr></tbody></table></figure>

<h2 id="9-一段Base64"><a href="#9-一段Base64" class="headerlink" title="9.一段Base64"></a>9.一段Base64</h2><p><a href="https://note.youdao.com/" target="_blank" rel="noopener">https://ctf.bugku.com/files/39488475fd87c064f9401eec2299c03e/1.txt</a></p>
<p>解码顺序：Base64 to Text ->Unescape->Hex to text->Unescape->Dec to Text->Decode HTML->Decode HTML->Unescape。</p>
<p><a href="https://note.youdao.com/" target="_blank" rel="noopener">https://blog.csdn.net/pdsu161530247/article/details/74640746</a></p>
<h2 id="10"><a href="#10" class="headerlink" title="10..!?"></a>10..!?</h2><figure class="highlight plain"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line">..... ..... ..... ..... !?!!. ?.... ..... ..... ..... .?.?! .?... .!...</span><br><span class="line">..... ..... !.?.. ..... !?!!. ?!!!! !!?.? !.?!! !!!.. ..... ..... .!.?.</span><br><span class="line">..... ...!? !!.?. ..... ..?.? !.?.. ..... .!.?. ..... ..... !?!!. ?!!!!</span><br><span class="line">!!!!! !?.?! .?!.? ..... ....! ?!!.? ..... ...?. ?!.?. ..... !.?.. .....</span><br><span class="line">!?!!. ?!!!! !!?.? !.?!! !!!!! !!!!. ..... ...!. ?.... ...!? !!.?. .....</span><br><span class="line">?.?!. ?..!. ?.... ..... !?!!. ?!!!! !!!!? .?!.? !!!!! !!!!! !!!.? .....</span><br><span class="line">..!?! !.?.. ....? .?!.? ....! .!!!. !!!!! !!!!! !!!!! !!.?. ..... .!?!!</span><br><span class="line">.?... ...?. ?!.?. ..... !.!!! !!!!! !.?.. ..... ..!?! !.?.. ..... .?.?!</span><br><span class="line">.?... ..... !.?.</span><br></pre></td></tr></tbody></table></figure>

<p>题目内容是一堆Ook！直接用下边的解密网址，选择Ook! to Text就好</p>
<p><a href="https://note.youdao.com/" target="_blank" rel="noopener">https://www.splitbrain.org/services/ook</a></p>
<h2 id="11"><a href="#11" class="headerlink" title="11.+[]-"></a>11.+[]-</h2><figure class="highlight plain"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">+++++ +++++ [->++ +++++ +++<]>++.+ +++++ .<+++ [-="">-- -<]>- -.+++ +++.<</]></+++></]></span><br><span class="line">++++[ ->+++ +<]>+ +++.< +++++ [->-- ---<]>.<++ ++[-=""> ++++< ]>+++ .<+++< span=""><br><span class="line">[->-- -<]>- ----. ++++. <+++[ -="">+++ <]>+. <++++ [-="">-- --<]> ----- -.<++< span=""><br><span class="line">+[->+ ++<]> ++.-. ----- ---.< +++[- >+++< ]>+++ .---- .<+++ [-="">-- -<]>-</]></+++></]></span><br><span class="line">.<+++ +++[-="">---- --<]> ----- ----. +.<++ +++++="" +[-="">+ +++++ ++<]> +++++</]></++></]></+++></span><br><span class="line">+++++ .<</span><br></++<></]></++++></]></+++[></]></span></+++<></++></]></]></span></pre></td></tr></tbody></table></figure>

<p>Brainfuck 选择Brainfuck to Text解密即可</p>
<p><a href="https://note.youdao.com/" target="_blank" rel="noopener">https://www.splitbrain.org/services/ook</a></p>
<h2 id="12-奇怪的密码"><a href="#12-奇怪的密码" class="headerlink" title="12.奇怪的密码"></a>12.奇怪的密码</h2><p>突然天上一道雷电<br>gndk€rlqhmtkwwp}z</p>
<p>gndk€rlqhmtkwwp}z这个格式像不像flag{<strong>***</strong>}?</p>
<p>我们比较一下”gndk”与”flag”的ASCII码</p>
<p>gndk的10进制的ASCII码分别是：103 110 100 107</p>
<p>flag的10进制的ASCII码分别是  ：102 108  97  103</p>
<p>发现ASCII以此减少 1 2 3 4，所以以此类推</p>
<figure class="highlight python"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">str1 = <span class="string">'gndk€rlqhmtkwwp}z'</span></span><br><span class="line">str2 = <span class="string">''</span></span><br><span class="line"><span class="keyword">for</span> i <span class="keyword">in</span> range(<span class="number">0</span>,len(str1)):</span><br><span class="line">    str2 += chr(ord(str1[i])-i<span class="number">-1</span>)</span><br><span class="line"></span><br><span class="line">print(str2)</span><br></pre></td></tr></tbody></table></figure>

<h2 id="13-托马斯-杰斐逊"><a href="#13-托马斯-杰斐逊" class="headerlink" title="13.托马斯.杰斐逊"></a>13.托马斯.杰斐逊</h2><figure class="highlight plain"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br></pre></td><td class="code"><pre><span class="line">1： <zwaxjgdlubviqhkypntcrmosfe <<="" span=""><br><span class="line">2： <kpbelnaczdtrxmjqoyhgvsfuwi <<="" span=""><br><span class="line">3： <bdmaizvrnsjuwfhteqgyxplock <<="" span=""><br><span class="line">4： <rplndvhgfcuktebsxqyizmjwao <<="" span=""><br><span class="line">5： <ihfrlabeuotsgjvdkcpmnzqwxy <<="" span=""><br><span class="line">6： <amkghiwpnycjbfzdrusloqxvet <<="" span=""><br><span class="line">7： <gwthspybxizulvkmrafdceonjq <<="" span=""><br><span class="line">8： <nozutwdcvrjlxkisefapmyghbq <<="" span=""><br><span class="line">9： <qwatdsrfhenyvubmcoikzgjxpl <<="" span=""><br><span class="line">10： <wabmcxpltdsrjqzgoikfhenyvu <<="" span=""><br><span class="line">11： <xpltdaoikfzghenysrubmcqwvj <<="" span=""><br><span class="line">12： <tdswayxplvuboikzgjrfhenmcq <<="" span=""><br><span class="line">13： <bmcsrfhltdenqwaoxpyvuikzgj <<="" span=""><br><span class="line">14： <xphkzgjtdsenyvubmlaoirfcqw <<="" span=""><br><span class="line"></span><br><span class="line">密钥： 2,5,1,3,6,4,9,7,8,14,10,13,11,12</span><br><span class="line"></span><br><span class="line">密文：HCBTSXWCRQGLES</span><br><span class="line"></span><br><span class="line">flag格式 flag{你解密的内容}</span><br></xphkzgjtdsenyvubmlaoirfcqw></span></bmcsrfhltdenqwaoxpyvuikzgj></span></tdswayxplvuboikzgjrfhenmcq></span></xpltdaoikfzghenysrubmcqwvj></span></wabmcxpltdsrjqzgoikfhenyvu></span></qwatdsrfhenyvubmcoikzgjxpl></span></nozutwdcvrjlxkisefapmyghbq></span></gwthspybxizulvkmrafdceonjq></span></amkghiwpnycjbfzdrusloqxvet></span></ihfrlabeuotsgjvdkcpmnzqwxy></span></rplndvhgfcuktebsxqyizmjwao></span></bdmaizvrnsjuwfhteqgyxplock></span></kpbelnaczdtrxmjqoyhgvsfuwi></span></zwaxjgdlubviqhkypntcrmosfe></span></pre></td></tr></tbody></table></figure>

<p>根据密钥将明文重新排列。</p>
<figure class="highlight plain"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br></pre></td><td class="code"><pre><span class="line">2： <kpbelnaczdtrxmjqoyhgvsfuwi <<="" span=""><br><span class="line">5： <ihfrlabeuotsgjvdkcpmnzqwxy <<="" span=""><br><span class="line">1： <zwaxjgdlubviqhkypntcrmosfe <<="" span=""><br><span class="line">3： <bdmaizvrnsjuwfhteqgyxplock <<="" span=""><br><span class="line">6： <amkghiwpnycjbfzdrusloqxvet <<="" span=""><br><span class="line">4： <rplndvhgfcuktebsxqyizmjwao <<="" span=""><br><span class="line">9： <qwatdsrfhenyvubmcoikzgjxpl <<="" span=""><br><span class="line">7： <gwthspybxizulvkmrafdceonjq <<="" span=""><br><span class="line">8： <nozutwdcvrjlxkisefapmyghbq <<="" span=""><br><span class="line">14：<xphkzgjtdsenyvubmlaoirfcqw <<="" span=""><br><span class="line">10：<wabmcxpltdsrjqzgoikfhenyvu <<="" span=""><br><span class="line">13：<bmcsrfhltdenqwaoxpyvuikzgj <<="" span=""><br><span class="line">11：<xpltdaoikfzghenysrubmcqwvj <<="" span=""><br><span class="line">12：<tdswayxplvuboikzgjrfhenmcq <<="" span=""><br></tdswayxplvuboikzgjrfhenmcq></span></xpltdaoikfzghenysrubmcqwvj></span></bmcsrfhltdenqwaoxpyvuikzgj></span></wabmcxpltdsrjqzgoikfhenyvu></span></xphkzgjtdsenyvubmlaoirfcqw></span></nozutwdcvrjlxkisefapmyghbq></span></gwthspybxizulvkmrafdceonjq></span></qwatdsrfhenyvubmcoikzgjxpl></span></rplndvhgfcuktebsxqyizmjwao></span></amkghiwpnycjbfzdrusloqxvet></span></bdmaizvrnsjuwfhteqgyxplock></span></zwaxjgdlubviqhkypntcrmosfe></span></ihfrlabeuotsgjvdkcpmnzqwxy></span></kpbelnaczdtrxmjqoyhgvsfuwi></span></pre></td></tr></tbody></table></figure>

<p>然后根据密文再次排列。</p>
<figure class="highlight plain"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br></pre></td><td class="code"><pre><span class="line">2： <hgvsfuwikpbelnaczdtrxmjqoy<< span=""><br><span class="line">5： <cpmnzqwxyihfrlabeuotsgjvdk<< span=""><br><span class="line">1： <bviqhkypntcrmosfezwaxjgdlu<< span=""><br><span class="line">3： <teqgyxplockbdmaizvrnsjuwfh<< span=""><br><span class="line">6： <sloqxvetamkghiwpnycjbfzdru<< span=""><br><span class="line">4： <xqyizmjwaorplndvhgfcuktebs<< span=""><br><span class="line">9： <watdsrfhenyvubmcoikzgjxplq<< span=""><br><span class="line">7： <ceonjqgwthspybxizulvkmrafd<< span=""><br><span class="line">8： <rjlxkisefapmyghbqnozutwdcv<< span=""><br><span class="line">14：<qwxphkzgjtdsenyvubmlaoirfc<< span=""><br><span class="line">10：<goikfhenyvuwabmcxpltdsrjqz<< span=""><br><span class="line">13：<ltdenqwaoxpyvuikzgjbmcsrfh<< span=""><br><span class="line">11：<enysrubmcqwvjxpltdaoikfzgh<< span=""><br><span class="line">12：<swayxplvuboikzgjrfhenmcqtd<< span=""><br><span class="line">可以看到倒数第六列XSXSBUGKUADMIN</span><br></swayxplvuboikzgjrfhenmcqtd<<></span></enysrubmcqwvjxpltdaoikfzgh<<></span></ltdenqwaoxpyvuikzgjbmcsrfh<<></span></goikfhenyvuwabmcxpltdsrjqz<<></span></qwxphkzgjtdsenyvubmlaoirfc<<></span></rjlxkisefapmyghbqnozutwdcv<<></span></ceonjqgwthspybxizulvkmrafd<<></span></watdsrfhenyvubmcoikzgjxplq<<></span></xqyizmjwaorplndvhgfcuktebs<<></span></sloqxvetamkghiwpnycjbfzdru<<></span></teqgyxplockbdmaizvrnsjuwfh<<></span></bviqhkypntcrmosfezwaxjgdlu<<></span></cpmnzqwxyihfrlabeuotsgjvdk<<></span></hgvsfuwikpbelnaczdtrxmjqoy<<></span></pre></td></tr></tbody></table></figure>

<h2 id="14-zip伪加密"><a href="#14-zip伪加密" class="headerlink" title="14.zip伪加密"></a>14.zip伪加密</h2><p>题目给了一个flag.zip，题目提示是zip伪加密，用UE打开。将图中标记的09改为00并保存。<br><img src="https://i.loli.net/2019/10/04/dhUDeW5fZswVPQg.png" alt=""></p>
<p>解压得到flag。</p>
<h2 id="15-告诉你个秘密-ISCCCTF"><a href="#15-告诉你个秘密-ISCCCTF" class="headerlink" title="15.告诉你个秘密(ISCCCTF)"></a>15.告诉你个秘密(ISCCCTF)</h2><figure class="highlight plain"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">636A56355279427363446C4A49454A7154534230526D6843</span><br><span class="line">56445A31614342354E326C4B4946467A5769426961453067</span><br></pre></td></tr></tbody></table></figure>

<p>16进制——>acsii——>base64解码——>键盘密码</p>
<p>最后解出来的是tongyuan，直接提交TONGYUAN即可。</p>
<h2 id="16-这不是md5"><a href="#16-这不是md5" class="headerlink" title="16.这不是md5"></a>16.这不是md5</h2><figure class="highlight plain"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">666c61677b616537333538376261353662616566357d</span><br></pre></td></tr></tbody></table></figure>

<p>16进制到文本字符串的转换<br><a href="https://note.youdao.com/" target="_blank" rel="noopener">http://www.bejson.com/convert/ox2str/
</a></p>
<h2 id="17-贝斯家族"><a href="#17-贝斯家族" class="headerlink" title="17.贝斯家族"></a>17.贝斯家族</h2><figure class="highlight plain"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">@iH<,{bdr2h;i6*tm,wx2izpx2!< span=""><br></,{bdr2h;i6*tm,wx2izpx2!<></span></pre></td></tr></tbody></table></figure>

<p>base91 解码<br><a href="https://note.youdao.com/" target="_blank" rel="noopener">http://ctf.ssleye.com/base91.html</a></p>
<p>flag{554a5058c9021c76}</p>
<h2 id="18-富强民主"><a href="#18-富强民主" class="headerlink" title="18.富强民主"></a>18.富强民主</h2><figure class="highlight plain"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">公正公正公正诚信文明公正民主公正法治法治友善平等和谐敬业和谐富强和谐富强和谐文明和谐平等公正公正和谐法治公正公正公正文明和谐民主和谐敬业和谐平等和谐敬业和谐敬业和谐和谐和谐公正法治友善法治</span><br></pre></td></tr></tbody></table></figure>

<p>核心价值观编码<br><a href="https://note.youdao.com/" target="_blank" rel="noopener">http://www.nicetool.net/app/core_values.html</a></p>
<h2 id="19-python-N1CTF"><a href="#19-python-N1CTF" class="headerlink" title="19.python(N1CTF)"></a>19.python(N1CTF)</h2><p>据已知的加密方式，写出解密的脚本</p>
<p>给出了两个python代码，一个是封装好的类，一个是定义的对象。</p>
<p>抄的脚本</p>
<figure class="highlight python"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># -*- coding: utf-8 -*-</span></span><br><span class="line"><span class="function"><span class="keyword">def</span> <span class="title">round_add</span><span class="params">(a, b)</span>:</span></span><br><span class="line">	f = <span class="keyword">lambda</span> x, y: x + y - <span class="number">2</span> * (x & y)</span><br><span class="line">	res = <span class="string">''</span></span><br><span class="line">	<span class="keyword">for</span> i <span class="keyword">in</span> range(len(a)):</span><br><span class="line">	    res += chr(f(ord(a[i]), ord(b[i])))</span><br><span class="line">	<span class="keyword">return</span> res</span><br><span class="line"></span><br><span class="line"><span class="function"><span class="keyword">def</span> <span class="title">permutate</span><span class="params">(table, block)</span>:</span></span><br><span class="line">	<span class="keyword">return</span> list(map(<span class="keyword">lambda</span> x: block[x], table))</span><br><span class="line"></span><br><span class="line"><span class="function"><span class="keyword">def</span> <span class="title">string_to_bits</span><span class="params">(data)</span>:</span></span><br><span class="line">    data = [ord(c) <span class="keyword">for</span> c <span class="keyword">in</span> data]</span><br><span class="line">    l = len(data) * <span class="number">8</span></span><br><span class="line">    result = [<span class="number">0</span>] * l</span><br><span class="line">    pos = <span class="number">0</span></span><br><span class="line">    <span class="keyword">for</span> ch <span class="keyword">in</span> data:</span><br><span class="line">        <span class="keyword">for</span> i <span class="keyword">in</span> range(<span class="number">0</span>,<span class="number">8</span>):</span><br><span class="line">            result[(pos<<<span class="number">3</span>)+i] = (ch>>i) & <span class="number">1</span></span><br><span class="line">        pos += <span class="number">1</span></span><br><span class="line">    <span class="keyword">return</span> result</span><br><span class="line"></span><br><span class="line">s_box = [<span class="number">54</span>, <span class="number">132</span>, <span class="number">138</span>, <span class="number">83</span>, <span class="number">16</span>, <span class="number">73</span>, <span class="number">187</span>, <span class="number">84</span>, <span class="number">146</span>, <span class="number">30</span>, <span class="number">95</span>, <span class="number">21</span>, <span class="number">148</span>, <span class="number">63</span>, <span class="number">65</span>, <span class="number">189</span>, <span class="number">188</span>, <span class="number">151</span>, <span class="number">72</span>, <span class="number">161</span>, <span class="number">116</span>, <span class="number">63</span>, <span class="number">161</span>, <span class="number">91</span>, <span class="number">37</span>, <span class="number">24</span>, <span class="number">126</span>, <span class="number">107</span>, <span class="number">87</span>, <span class="number">30</span>, <span class="number">117</span>, <span class="number">185</span>, <span class="number">98</span>, <span class="number">90</span>, <span class="number">0</span>, <span class="number">42</span>, <span class="number">140</span>, <span class="number">70</span>, <span class="number">86</span>, <span class="number">0</span>, <span class="number">42</span>, <span class="number">150</span>, <span class="number">54</span>, <span class="number">22</span>, <span class="number">144</span>, <span class="number">153</span>, <span class="number">36</span>, <span class="number">90</span>, <span class="number">149</span>, <span class="number">54</span>, <span class="number">156</span>, <span class="number">8</span>, <span class="number">59</span>, <span class="number">40</span>, <span class="number">110</span>, <span class="number">56</span>,<span class="number">1</span>, <span class="number">84</span>, <span class="number">103</span>, <span class="number">22</span>, <span class="number">65</span>, <span class="number">17</span>, <span class="number">190</span>, <span class="number">41</span>, <span class="number">99</span>, <span class="number">151</span>, <span class="number">119</span>, <span class="number">124</span>, <span class="number">68</span>, <span class="number">17</span>, <span class="number">166</span>, <span class="number">125</span>, <span class="number">95</span>, <span class="number">65</span>, <span class="number">105</span>, <span class="number">133</span>, <span class="number">49</span>, <span class="number">19</span>, <span class="number">138</span>, <span class="number">29</span>, <span class="number">110</span>, <span class="number">7</span>, <span class="number">81</span>, <span class="number">134</span>, <span class="number">70</span>, <span class="number">87</span>, <span class="number">180</span>, <span class="number">78</span>, <span class="number">175</span>, <span class="number">108</span>, <span class="number">26</span>, <span class="number">121</span>, <span class="number">74</span>, <span class="number">29</span>, <span class="number">68</span>, <span class="number">162</span>, <span class="number">142</span>, <span class="number">177</span>, <span class="number">143</span>, <span class="number">86</span>, <span class="number">129</span>, <span class="number">101</span>, <span class="number">117</span>, <span class="number">41</span>, <span class="number">57</span>, <span class="number">34</span>, <span class="number">177</span>, <span class="number">103</span>, <span class="number">61</span>, <span class="number">135</span>, <span class="number">191</span>, <span class="number">74</span>, <span class="number">69</span>, <span class="number">147</span>, <span class="number">90</span>, <span class="number">49</span>, <span class="number">135</span>, <span class="number">124</span>, <span class="number">106</span>, <span class="number">19</span>, <span class="number">89</span>, <span class="number">38</span>, <span class="number">21</span>, <span class="number">41</span>, <span class="number">17</span>, <span class="number">155</span>, <span class="number">83</span>, <span class="number">38</span>, <span class="number">159</span>, <span class="number">179</span>, <span class="number">19</span>, <span class="number">157</span>, <span class="number">68</span>, <span class="number">105</span>, <span class="number">151</span>, <span class="number">166</span>, <span class="number">171</span>, <span class="number">122</span>, <span class="number">179</span>, <span class="number">114</span>, <span class="number">52</span>, <span class="number">183</span>, <span class="number">89</span>, <span class="number">107</span>, <span class="number">113</span>, <span class="number">65</span>, <span class="number">161</span>, <span class="number">141</span>, <span class="number">18</span>, <span class="number">121</span>, <span class="number">95</span>, <span class="number">4</span>, <span class="number">95</span>, <span class="number">101</span>, <span class="number">81</span>, <span class="number">156</span>, <span class="number">17</span>, <span class="number">190</span>, <span class="number">38</span>, <span class="number">84</span>, <span class="number">9</span>, <span class="number">171</span>, <span class="number">180</span>, <span class="number">59</span>, <span class="number">45</span>, <span class="number">15</span>, <span class="number">34</span>, <span class="number">89</span>, <span class="number">75</span>, <span class="number">164</span>, <span class="number">190</span>, <span class="number">140</span>, <span class="number">6</span>, <span class="number">41</span>, <span class="number">188</span>, <span class="number">77</span>, <span class="number">165</span>, <span class="number">105</span>, <span class="number">5</span>, <span class="number">107</span>, <span class="number">31</span>, <span class="number">183</span>, <span class="number">107</span>, <span class="number">141</span>, <span class="number">66</span>, <span class="number">63</span>, <span class="number">10</span>, <span class="number">9</span>, <span class="number">125</span>, <span class="number">50</span>, <span class="number">2</span>, <span class="number">153</span>, <span class="number">156</span>, <span class="number">162</span>, <span class="number">186</span>, <span class="number">76</span>, <span class="number">158</span>, <span class="number">153</span>, <span class="number">117</span>, <span class="number">9</span>, <span class="number">77</span>, <span class="number">156</span>, <span class="number">11</span>, <span class="number">145</span>, <span class="number">12</span>, <span class="number">169</span>, <span class="number">52</span>, <span class="number">57</span>, <span class="number">161</span>, <span class="number">7</span>, <span class="number">158</span>, <span class="number">110</span>, <span class="number">191</span>, <span class="number">43</span>, <span class="number">82</span>, <span class="number">186</span>, <span class="number">49</span>, <span class="number">102</span>, <span class="number">166</span>, <span class="number">31</span>, <span class="number">41</span>, <span class="number">5</span>, <span class="number">189</span>, <span class="number">27</span>]</span><br><span class="line"></span><br><span class="line"><span class="function"><span class="keyword">def</span> <span class="title">generate</span><span class="params">(o)</span>:</span></span><br><span class="line">    k = permutate(s_box,o)</span><br><span class="line">    b = []</span><br><span class="line">    <span class="keyword">for</span> i <span class="keyword">in</span> range(<span class="number">0</span>, len(k), <span class="number">7</span>):</span><br><span class="line">        b.append(k[i:i+<span class="number">7</span>] + [<span class="number">1</span>])</span><br><span class="line">    c = []</span><br><span class="line">    <span class="keyword">for</span> i <span class="keyword">in</span> range(<span class="number">32</span>):</span><br><span class="line">		pos = <span class="number">0</span></span><br><span class="line">		x = <span class="number">0</span></span><br><span class="line">		<span class="keyword">for</span> j <span class="keyword">in</span> b[i]:</span><br><span class="line">			x += (j<<pos)< span=""><br><span class="line">			pos += <span class="number">1</span></span><br><span class="line">		c.append((<span class="number">0x10001</span>**x) % (<span class="number">0x7f</span>))</span><br><span class="line">    <span class="keyword">return</span> c</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="class"><span class="keyword">class</span> <span class="title">N1ES</span>:</span></span><br><span class="line">    <span class="function"><span class="keyword">def</span> <span class="title">__init__</span><span class="params">(self, key)</span>:</span></span><br><span class="line">        <span class="keyword">if</span> (len(key) != <span class="number">24</span> <span class="keyword">or</span> isinstance(key, bytes) == <span class="keyword">False</span> ):</span><br><span class="line">            <span class="keyword">raise</span> Exception(<span class="string">"key must be 24 bytes long"</span>)</span><br><span class="line">        self.key = key</span><br><span class="line">        self.gen_subkey()</span><br><span class="line"></span><br><span class="line">    <span class="function"><span class="keyword">def</span> <span class="title">gen_subkey</span><span class="params">(self)</span>:</span></span><br><span class="line">        o = string_to_bits(self.key)</span><br><span class="line">        k = []</span><br><span class="line">        <span class="keyword">for</span> i <span class="keyword">in</span> range(<span class="number">8</span>):</span><br><span class="line">	        o = generate(o)</span><br><span class="line">        	k.extend(o)</span><br><span class="line">        	o = string_to_bits([chr(c) <span class="keyword">for</span> c <span class="keyword">in</span> o[<span class="number">0</span>:<span class="number">24</span>]])</span><br><span class="line">        self.Kn = []</span><br><span class="line">        <span class="keyword">for</span> i <span class="keyword">in</span> range(<span class="number">32</span>):</span><br><span class="line">            self.Kn.append(map(chr, k[i * <span class="number">8</span>: i * <span class="number">8</span> + <span class="number">8</span>]))</span><br><span class="line">        <span class="keyword">return</span> </span><br><span class="line"></span><br><span class="line">    <span class="function"><span class="keyword">def</span> <span class="title">encrypt</span><span class="params">(self, plaintext)</span>:</span></span><br><span class="line">        <span class="keyword">if</span> (len(plaintext) % <span class="number">16</span> != <span class="number">0</span> <span class="keyword">or</span> isinstance(plaintext, bytes) == <span class="keyword">False</span>):</span><br><span class="line">            <span class="keyword">raise</span> Exception(<span class="string">"plaintext must be a multiple of 16 in length"</span>)</span><br><span class="line">        res = <span class="string">''</span></span><br><span class="line">        <span class="keyword">for</span> i <span class="keyword">in</span> range(len(plaintext) / <span class="number">16</span>):</span><br><span class="line">            block = plaintext[i * <span class="number">16</span>:(i + <span class="number">1</span>) * <span class="number">16</span>]</span><br><span class="line">            L = block[:<span class="number">8</span>]</span><br><span class="line">            R = block[<span class="number">8</span>:]</span><br><span class="line">            <span class="keyword">for</span> round_cnt <span class="keyword">in</span> range(<span class="number">32</span>):</span><br><span class="line">                L, R = R, (round_add(L, self.Kn[round_cnt]))</span><br><span class="line">            L, R = R, L</span><br><span class="line">            res += L + R</span><br><span class="line">        <span class="keyword">return</span> res</span><br></pos)<></span></pre></td></tr></tbody></table></figure>

<h2 id="20-进制转换"><a href="#20-进制转换" class="headerlink" title="20.进制转换"></a>20.进制转换</h2><p>二进制、八进制、十进制、十六进制，你能分的清吗？</p>
<figure class="highlight plain"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">d87 x65 x6c x63 o157 d109 o145 b100000 d116 b1101111 o40 x6b b1100101 b1101100 o141 d105 x62 d101 b1101001 d46 o40 d71 x69 d118 x65 x20 b1111001 o157 b1110101 d32 o141 d32 d102 o154 x61 x67 b100000 o141 d115 b100000 b1100001 d32 x67 o151 x66 d116 b101110 b100000 d32 d102 d108 d97 o147 d123 x31 b1100101 b110100 d98 d102 b111000 d49 b1100001 d54 b110011 x39 o64 o144 o145 d53 x61 b1100010 b1100011 o60 d48 o65 b1100001 x63 b110110 d101 o63 b111001 d97 d51 o70 d55 b1100010 d125 x20 b101110 x20 b1001000 d97 d118 o145 x20 d97 o40 d103 d111 d111 x64 d32 o164 b1101001 x6d o145 x7e</span><br></pre></td></tr></tbody></table></figure>

<figure class="highlight python"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">import</span> binascii</span><br><span class="line">text = <span class="string">"d87 x65 x6c x63 o157 d109 o145 b100000 d116 b1101111 o40 x6b b1100101 b1101100 o141 d105 x62 d101 b1101001 d46 o40 d71 x69 d118 x65 x20 b1111001 o157 b1110101 d32 o141 d32 d102 o154 x61 x67 b100000 o141 d115 b100000 b1100001 d32 x67 o151 x66 d116 b101110 b100000 d32 d102 d108 d97 o147 d123 x31 b1100101 b110100 d98 d102 b111000 d49 b1100001 d54 b110011 x39 o64 o144 o145 d53 x61 b1100010 b1100011 o60 d48 o65 b1100001 x63 b110110 d101 o63 b111001 d97 d51 o70 d55 b1100010 d125 x20 b101110 x20 b1001000 d97 d118 o145 x20 d97 o40 d103 d111 d111 x64 d32 o164 b1101001 x6d o145 x7e"</span></span><br><span class="line">solution = <span class="string">''</span></span><br><span class="line">text2 = text.split(<span class="string">' '</span>)</span><br><span class="line"><span class="keyword">for</span> x <span class="keyword">in</span> text2:</span><br><span class="line">    print(x)</span><br><span class="line">    <span class="keyword">if</span> x[<span class="number">0</span>] == <span class="string">'b'</span>: <span class="comment">#binary</span></span><br><span class="line">        solution += chr(int(x[<span class="number">1</span>:],<span class="number">2</span>))</span><br><span class="line">    <span class="keyword">elif</span> x[<span class="number">0</span>] == <span class="string">'x'</span>: <span class="comment"># hexadecimal</span></span><br><span class="line">        solution += x[<span class="number">1</span>:].decode(<span class="string">"hex"</span>)</span><br><span class="line">    <span class="keyword">elif</span> x[<span class="number">0</span>] == <span class="string">'d'</span>: <span class="comment"># decimal</span></span><br><span class="line">        solution += chr(int(x[<span class="number">1</span>:]))</span><br><span class="line">    <span class="keyword">elif</span> x[<span class="number">0</span>] == <span class="string">'o'</span>: <span class="comment"># octal</span></span><br><span class="line">        solution += chr(int(x[<span class="number">1</span>:],<span class="number">8</span>))</span><br><span class="line">print(solution)</span><br></pre></td></tr></tbody></table></figure>

<h2 id="21-affine"><a href="#21-affine" class="headerlink" title="21. affine"></a>21. affine</h2><p>y = 17x-8 flag{szzyfimhyzd}</p>
<p>答案格式：flag{*}</p>
<p><img src="https://i.loli.net/2019/10/04/mMiCq71XNvjf9K2.png" alt=""></p>
<h2 id="22-Crack-it"><a href="#22-Crack-it" class="headerlink" title="22.Crack it"></a>22.Crack it</h2><p>破解该文件，获得密码，flag格式为：flag{*}</p>
<p>题目给了一个shadow文件，我们需要把shadow文件中的密码破解出来即可得到flag。</p>
<p>kali下自带的一个工具John the Ripper，是可以破解passwd文件和shadow文件的密码的</p>
<figure class="highlight plain"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">john shadow</span><br><span class="line">john --show shadow</span><br></pre></td></tr></tbody></table></figure>

<p>flag{hellokitty}</p>
<h2 id="23-rsa"><a href="#23-rsa" class="headerlink" title="23.rsa"></a>23.rsa</h2><figure class="highlight plain"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">N : 460657813884289609896372056585544172485318117026246263899744329237492701820627219556007788200590119136173895989001382151536006853823326382892363143604314518686388786002989248800814861248595075326277099645338694977097459168530898776007293695728101976069423971696524237755227187061418202849911479124793990722597</span><br><span class="line">e : 354611102441307572056572181827925899198345350228753730931089393275463916544456626894245415096107834465778409532373187125318554614722599301791528916212839368121066035541008808261534500586023652767712271625785204280964688004680328300124849680477105302519377370092578107827116821391826210972320377614967547827619</span><br><span class="line"></span><br><span class="line">enc : 38230991316229399651823567590692301060044620412191737764632384680546256228451518238842965221394711848337832459443844446889468362154188214840736744657885858943810177675871991111466653158257191139605699916347308294995664530280816850482740530602254559123759121106338359220242637775919026933563326069449424391192</span><br></pre></td></tr></tbody></table></figure>

<p><img src="https://i.loli.net/2019/10/04/qwg6nJfzDEVyQtT.png" alt=""></p>
<figure class="highlight python"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">#coding:utf-8</span></span><br><span class="line"><span class="keyword">from</span> libnum <span class="keyword">import</span> n2s,s2n</span><br><span class="line"><span class="keyword">import</span> base64</span><br><span class="line"><span class="function"><span class="keyword">def</span> <span class="title">gcd</span><span class="params">(a, b)</span>:</span> <span class="comment">#࿢๋य़لᕅහ</span></span><br><span class="line">    <span class="keyword">if</span> a < b:</span><br><span class="line">        a, b = b, a</span><br><span class="line">    <span class="keyword">while</span> b != <span class="number">0</span>:</span><br><span class="line">        temp = a % b</span><br><span class="line">        a = b</span><br><span class="line">        b = temp</span><br><span class="line">    <span class="keyword">return</span> a</span><br><span class="line"><span class="function"><span class="keyword">def</span> <span class="title">egcd</span><span class="params">(a, b)</span>:</span></span><br><span class="line">    <span class="keyword">if</span> a == <span class="number">0</span>:</span><br><span class="line">        <span class="keyword">return</span> (b, <span class="number">0</span>, <span class="number">1</span>)</span><br><span class="line">    <span class="keyword">else</span>:</span><br><span class="line">        g, y, x = egcd(b % a, a)</span><br><span class="line">        <span class="keyword">return</span> (g, x - (b // a) * y, y)</span><br><span class="line"><span class="function"><span class="keyword">def</span> <span class="title">modinv</span><span class="params">(a, m)</span>:</span></span><br><span class="line">    g, x, y = egcd(a, m)</span><br><span class="line">    <span class="keyword">if</span> g != <span class="number">1</span>:</span><br><span class="line">        <span class="keyword">raise</span> Exception(<span class="string">'modular inverse does not exist'</span>)</span><br><span class="line">    <span class="keyword">else</span>:</span><br><span class="line">        <span class="keyword">return</span> x % m</span><br><span class="line"><span class="keyword">if</span> __name__ == <span class="string">"__main__"</span>:</span><br><span class="line">    p=<span class="number">15991846970993213322072626901560749932686325766403404864023341810735319249066370916090640926219079368845510444031400322229147771682961132420481897362843199</span></span><br><span class="line">    q=<span class="number">28805791771260259486856902729020438686670354441296247148207862836064657849735343618207098163901787287368569768472521344635567334299356760080507454640207003</span></span><br><span class="line">    e = <span class="number">354611102441307572056572181827925899198345350228753730931089393275463916544456626894245415096107834465778409532373187125318554614722599301791528916212839368121066035541008808261534500586023652767712271625785204280964688004680328300124849680477105302519377370092578107827116821391826210972320377614967547827619</span></span><br><span class="line">    <span class="comment"># tmp = base64.b64decode("qzogS7X8M3ZOpkUhJJcbukaRduLyqHAPblmabaYSm9iatuulrHcEpBmil7V40N7gbsQXwYx5EBH5r5V2HRcEIOXjgfk5vpGLjPVxBLyXh2DajHPX6KvbFpQ8jNpCQbUNq8Hst00yDSO/6ri9dk6bk7+uyuN0b2K1bNG5St6sCQ4qYEA3xJbsHFvMqtvUdhMiqO7tNCUVTKZdN7iFvSJqK2IHosIf7FqO24zkHZpHi31sYU7pcgYEaGkVaKs8pjq6nbnffr4URfoexZHeQtq5UAkr95zD6WgvGcxaTDKafFntboX9GR9VUZnHePiio7nJ3msfue5rkIbISjmGCAlj+w==")</span></span><br><span class="line">    <span class="comment"># =</span></span><br><span class="line">    d = modinv(e, (p - <span class="number">1</span>) * (q - <span class="number">1</span>))</span><br><span class="line">    <span class="comment"># c=s2n(tmp)</span></span><br><span class="line">    c = <span class="number">38230991316229399651823567590692301060044620412191737764632384680546256228451518238842965221394711848337832459443844446889468362154188214840736744657885858943810177675871991111466653158257191139605699916347308294995664530280816850482740530602254559123759121106338359220242637775919026933563326069449424391192</span></span><br><span class="line">    <span class="comment">#c = 225031483444634056931067907865853799650197225351377050632290334721073031287701730297815850654473721939907812470206115171738967740183098960272963323728747481560137205796840356532306950935686580268408289864109695494835661414073083573249882362332920722000099781994315336570711188934565379141406727420346806389405536474102730682155998263607095718543239272202402139286809779368710600842078606046563228470023546348908618719147790859257980882643030144242048154566691808688844513142261099020381730517293884263384819159874220288293023868919557980548807831273449743064237407705987056818011286315950476959812697067649075359373253</span></span><br><span class="line">    n = p*q</span><br><span class="line">    m=pow(c,d,n)</span><br><span class="line">    <span class="keyword">print</span> (n2s(m))</span><br></pre></td></tr></tbody></table></figure>

<h2 id="24-来自宇宙的信号"><a href="#24-来自宇宙的信号" class="headerlink" title="24.来自宇宙的信号"></a>24.来自宇宙的信号</h2><p><img src="https://i.loli.net/2019/10/04/5sLMoROtS4T6P2v.png" alt=""></p>
<p>银河标准字母</p>
<p><img src="https://i.loli.net/2019/10/04/q3t8US6Y7CArO5D.jpg" alt=""></p>
<p>对应得到flag:<br>flag{nopqrst}</p>
</body></html>
      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      
        <div class="post-tags">
          
            <a href="/tags/密码学/" rel="tag"># 密码学</a>
          
        </div>
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/2019/09/30/“Chrome插件/" rel="next" title="Chrome插件">
                <i class="fa fa-chevron-left"></i> Chrome插件
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/2020/01/28/“vulnhub之Me-and-My-Girlfriend-1实战”/" rel="prev" title="“vulnhub之Me-and-My-Girlfriend-1实战”">
                “vulnhub之Me-and-My-Girlfriend-1实战” <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          

  
    <div class="comments" id="comments">
    </div>
  



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope="" itemtype="http://schema.org/Person">
            
              <img class="site-author-image" itemprop="image" src="/images/touxiang.jpg" alt="GodPang">
            
              <p class="site-author-name" itemprop="name">GodPang</p>
              <p class="site-description motion-element" itemprop="description">一只一直在努力的胖子</p>
          </div>

          <nav class="site-state motion-element">

            
              <div class="site-state-item site-state-posts">
              
                <a href="/archives">
              
                  <span class="site-state-item-count">23</span>
                  <span class="site-state-item-name">日志</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-categories">
                <a href="/categories/index.html">
                  <span class="site-state-item-count">7</span>
                  <span class="site-state-item-name">分类</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-tags">
                <a href="/tags/index.html">
                  <span class="site-state-item-count">11</span>
                  <span class="site-state-item-name">标签</span>
                </a>
              </div>
            

          </nav>

          
            <div class="feed-link motion-element">
              <a href="/atom.xml" rel="alternate">
                <i class="fa fa-rss"></i>
                RSS
              </a>
            </div>
          

          
            <div class="links-of-author motion-element">
                
                  <span class="links-of-author-item">
                    <a href="https://github.com/GodPang" target="_blank" title="GitHub">
                      
                        <i class="fa fa-fw fa-github"></i>GitHub</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="https://www.jianshu.com/u/c8a45218e240" target="_blank" title="简书">
                      
                        <i class="fa fa-fw fa-book"></i>简书</a>
                  </span>
                
            </div>
          

          
          

          
          
            <div class="links-of-blogroll motion-element links-of-blogroll-block">
              <div class="links-of-blogroll-title">
                <i class="fa  fa-fw fa-link"></i>
                Links
              </div>
              <ul class="links-of-blogroll-list">
                
                  <li class="links-of-blogroll-item">
                    <a href="https://lengjibo.github.io/" title="冷逸" target="_blank">冷逸</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://test482.github.io" title="Eliot's Blog" target="_blank">Eliot's Blog</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://prontosil.club/" title="百浪多息" target="_blank">百浪多息</a>
                  </li>
                
              </ul>
            </div>
          

          <div id="music163player">
    <iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width="330" height="86" src="//music.163.com/outchain/player?type=2&id=38592976&auto=1&height=66"></iframe>
</div>

        </div>
      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#1-滴答-滴"><span class="nav-number">1.</span> <span class="nav-text">1.滴答~滴</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#2-聪明的小羊"><span class="nav-number">2.</span> <span class="nav-text">2.聪明的小羊</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#3-ok"><span class="nav-number">3.</span> <span class="nav-text">3.ok</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#4-这不是摩斯密码"><span class="nav-number">4.</span> <span class="nav-text">4.这不是摩斯密码</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#5-easy-crypto"><span class="nav-number">5.</span> <span class="nav-text">5.easy_crypto</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#6-简单加密"><span class="nav-number">6.</span> <span class="nav-text">6.简单加密</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#7-散乱的密文"><span class="nav-number">7.</span> <span class="nav-text">7.散乱的密文</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#8-凯撒部长的奖励"><span class="nav-number">8.</span> <span class="nav-text">8.凯撒部长的奖励</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#9-一段Base64"><span class="nav-number">9.</span> <span class="nav-text">9.一段Base64</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#10"><span class="nav-number">10.</span> <span class="nav-text">10..!?</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#11"><span class="nav-number">11.</span> <span class="nav-text">11.+[]-</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#12-奇怪的密码"><span class="nav-number">12.</span> <span class="nav-text">12.奇怪的密码</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#13-托马斯-杰斐逊"><span class="nav-number">13.</span> <span class="nav-text">13.托马斯.杰斐逊</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#14-zip伪加密"><span class="nav-number">14.</span> <span class="nav-text">14.zip伪加密</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#15-告诉你个秘密-ISCCCTF"><span class="nav-number">15.</span> <span class="nav-text">15.告诉你个秘密(ISCCCTF)</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#16-这不是md5"><span class="nav-number">16.</span> <span class="nav-text">16.这不是md5</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#17-贝斯家族"><span class="nav-number">17.</span> <span class="nav-text">17.贝斯家族</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#18-富强民主"><span class="nav-number">18.</span> <span class="nav-text">18.富强民主</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#19-python-N1CTF"><span class="nav-number">19.</span> <span class="nav-text">19.python(N1CTF)</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#20-进制转换"><span class="nav-number">20.</span> <span class="nav-text">20.进制转换</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#21-affine"><span class="nav-number">21.</span> <span class="nav-text">21. affine</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#22-Crack-it"><span class="nav-number">22.</span> <span class="nav-text">22.Crack it</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#23-rsa"><span class="nav-number">23.</span> <span class="nav-text">23.rsa</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#24-来自宇宙的信号"><span class="nav-number">24.</span> <span class="nav-text">24.来自宇宙的信号</span></a></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      

    </div>
  </aside>
    


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright">&copy; 2018 &mdash; <span itemprop="copyrightYear">2020</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">GodPang</span>

  
</div>


  <div class="powered-by">由 <a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a> 强力驱动</div>



  <span class="post-meta-divider">|</span>



  <div class="theme-info">主题 &mdash; <a class="theme-link" target="_blank" href="https://github.com/iissnan/hexo-theme-next">NexT.Pisces</a> v5.1.4</div>



  <div class="footer-custom">Hosted by <a target="_blank" rel="external nofollow" href="https://pages.github.com/">GitHub Pages</a></div>


        
<div class="busuanzi-count">
  <script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>

  
    <span class="site-uv">
      <i class="fa fa-user"></i>
      <span class="busuanzi-value" id="busuanzi_value_site_uv"></span>
      
    </span>
  

  
    <span class="site-pv">
      <i class="fa fa-eye"></i>
      <span class="busuanzi-value" id="busuanzi_value_site_pv"></span>
      
    </span>
  
</div>








        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
          <span id="scrollpercent"><span>0</span>%</span>
        
      </div>
    

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  


  











  
  
    <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>
  

  
  
    <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
  

  
  
    <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
  

  
  
    <script type="text/javascript" src="/lib/canvas-nest/canvas-nest.min.js"></script>
  


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.1.4"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.1.4"></script>



  
  


  <script type="text/javascript" src="/js/src/affix.js?v=5.1.4"></script>

  <script type="text/javascript" src="/js/src/schemes/pisces.js?v=5.1.4"></script>



  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=5.1.4"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.1.4"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.4"></script>



  


  




	





  





  










  <script src="//cdn1.lncld.net/static/js/3.0.4/av-min.js"></script>
  <script src="//unpkg.com/valine/dist/Valine.min.js"></script>
  
  <script type="text/javascript">
    var GUEST = ['nick','mail','link'];
    var guest = 'nick,mail,link';
    guest = guest.split(',').filter(item=>{
      return GUEST.indexOf(item)>-1;
    });
    new Valine({
        el: '#comments' ,
        verify: false,
        notify: false,
        appId: 'RAQiIXnddbLLbBRiBcDuJo3j-gzGzoHsz',
        appKey: 'rhBtL6nW6zYrDqLcVsPX4M51',
        placeholder: '大佬勿喷，文明交流',
        avatar:'mm',
        guest_info:guest,
        pageSize:'10' || 10,
    });
  </script>



  





  

  

  

  
  

  

  

  

<!-- 页面点击小红心 -->
<script type="text/javascript" src="/js/src/clicklove.js"></script>

</body>
</html>
